import request from '@/utils/request'

// 列表
export function keyLists(params?: any) {
    return request.get({ url: '/key.key/lists', params })
}
// 列表
export function keyAll(params?: any) {
    return request.get({ url: '/key/all', params })
}

// 添加
export function keyAdd(params: any) {
    return request.post({ url: '/key.key/add', params })
}

// 编辑
export function keyEdit(params: any) {
    return request.post({ url: '/key.key/edit', params })
}

// 删除
export function keyDelete(params: any) {
    return request.post({ url: '/key.key/delete', params })
}

// 详情
export function keyDetail(params: any) {
    return request.get({ url: '/key.key/detail', params })
}

// 分类状态
export function keyStatus(params: any) {
    return request.post({ url: '/key.key/updateStatus', params })
}


// 分类状态
export function generateKeys(params: any) {
    return request.post({ url: '/key.key/generateKeys', params })
}